package io.math;

import java.io.Serializable;

public class Text implements Serializable {
   private String username;
    private  String IDname;
    //用了   transient 就不会呗反序列化 
    private transient int  age;


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIDname() {
        return IDname;
    }

    public void setIDname(String IDname) {
        this.IDname = IDname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Text(String username, String IDname, int age) {
        this.username = username;
        this.IDname = IDname;
        this.age = age;
    }

    public Text() {
    }

    @Override
    public String toString() {
        return "Text{" +
                "username='" + username + '\'' +
                ", IDname='" + IDname + '\'' +
                ", age=" + age +
                '}';
    }
}
